package com.h3c.nem.client;

import com.alibaba.fastjson.JSONObject;
import com.h3c.nem.dto.PsaTbTrainWorkerDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.List;

@FeignClient(name = "psa",url = "${psaurl}")
public interface PsaClient {

    @GetMapping("/projectmgr/control/listTraineeScoreNewEntry")
    JSONObject getGrade(List<String> workerIds);

    @PostMapping("/projectmgr/control/modifyTraineeByNEM")
    JSONObject modifyPsaOneMailStatus(PsaTbTrainWorkerDTO psaTbTrainWorkerDTO);
}
